<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />

<link href="css/adminstyle.css" rel="stylesheet" type="text/css">

<title>管理区域</title>

<script src="js/js.js"></script>

<script>

function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='salepurpose_delete.html?id='+id;

	}

}

function submits1(value){

	if(confirm('是否确认'))	{

		document.getElementById('form').submit();

	}

}

</script>

</head>



<body>
<div id="man_zone">
<div style="background-color:#FFFFFF ">

<div class="search_condition">
<div class="div1">
 <form method="get"  action="">
  年度<select name="year">
    <option value="">请选择</option>
  	  <?=$yearOptions?>
    </select>
  &nbsp;
  &nbsp;

  月份
  <select name="month">

  <option value="">请选择</option>
   <?=$monthOptions?>
  </select>
  &nbsp;&nbsp;&nbsp;
  <input class="PublicBot" name="search"  type="submit" value="检索" />  
  <input class="PublicBot" name="" type="button" onclick="window.location.href='salepurpose_add.html'" value="添加" />
 </form> 
</div>
</div>
<form method="get" id="form" action="salepurpose_delete.html">
  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="25"></td>

      <td>年度</td>

      <td>月份</td>

      <td>销售指标(万元)</td>
		
	  <td>新注册人数</td>

	  <td>本月付费人数</td>
	  
      <td>实际营收(万元)</td>
	  
      <td>实际注册人数</td>
      
      <td>实际付费人数</td>
      
      <td align="center">操作</td>

    </tr>

    <?

    foreach($list as $v){

	?>

    <tr  bgcolor="#FFFFFF">

          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td  align="center"><?=$v['year']?></td>

     <td  align="center"><?=$v['month']?>月份</td>

     <td  align="center"><?=$v['sale_purpose']?></td>

     <td  align="center"><?=$v['register_purpose']?></td>

     <td  align="center"><?=$v['register_pay_purpose']?></td>
     
     <td  align="center"><?=number_format($v['completeOrderAmount'],2)?></td>

     <td  align="center"><?=$v['completeRegisterUser']?></td>
     
     <td  align="center"><?=$v['completeRegisterPayUser']?></td>
     
     
      <td align="center"><a onclick=delc(<?=$v['id']?>) href="javaScript:void(0);">删除</a>　　

      <a href="salepurpose_add.html?id=<?=$v['id']?>">修改</a></td>

    </tr> 

    <?

	}

	?>

 <tr   bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="10"><input type="button" class="PublicBot" name="delete" id="button" value="删除" onClick="submits1()"><?  echo $page; ?>

 </td>

 </tr>

  </table>

 </form>

</div>

</div>

</body>

</html>

